module.exports = {
  /*
  ** Headers of the page
  */
  head: {
    title: 'xndj',
    meta: [
      { charset: 'utf-8' },
      { name: 'viewport', content: 'width=device-width, initial-scale=1' },
      { hid: 'description', name: 'description', content: 'Nuxt.js project' }
    ],
    script:[
      { type: 'text/javascript' , src : '/flexible.js' }
    ],
    link: [
      { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
    ]
	},
	css:[
		{ src: './node_modules/font-awesome/css/font-awesome.css' },
		{ src: './assets/style.min.css' },
	],
	plugins:[
		{ src : '~/plugins/global.components.js',ssr: true },
		{ src : '~/plugins/mint-ui.js',ssr: true },
	],
  /*
  ** Customize the progress bar color
  */
  loading: { color: '#3B8070' },
  /*
  ** Build configuration
  */
  build: {
    /*
    ** Run ESLint on save
    */
   filenames:{
      css: 'common.css',
      manifest: 'manifest.js',
      vendor: 'common.js',
      app: 'app.js',
      chunk: '[name].js'
    },
    extend (config, { isDev, isClient }) {
      if (isDev && isClient) {
        
      }
    },
    publicPath:'/',
		postcss: [
      require('postcss-px2rem')({
        remUnit: 75
			}),
			require('autoprefixer')({
				browsers:['last 2 versions','>5%']
			})
		],
		extractCSS: true,
  }
}
